<%--
  Created by IntelliJ IDEA.
  User: LX
  Date: 2017/5/27
  Time: 11:38
--%>
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214085/Report_085"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="Report_085"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>投入时间：</label>
            <input type="text" name="startTime" value="${startTime}" data-toggle="datepicker"
                   placeholder="FROM">&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="endTime" value="${endTime}" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;
            <label>产出时间：</label>
            <input type="text" name="start" value="${start}" data-toggle="datepicker"
                   placeholder="FROM">&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="end" value="${end}" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;<br>
            <label>lotID：</label>
            <input type="text" name="lot_id" value="${lot_id}"/>

            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/bb214/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true"
           class="table table-bordered table-hover table-striped table-top">
        <thead>
        <tr>
            <g:each in="${tableHeadList}" status="j" var="headInstance">
                <g:if test="${headInstance != 'RN'}">
                    <th width="125"><g:message code="${headInstance}" default="${headInstance}"/></th>
                </g:if>
            </g:each>
        </tr>
        </thead>
        <tbody>
        <g:each in="${Report_085List}" status="i" var="dataInstance">
            <tr>
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance != 'RN'}">
                        <g:if test="${headInstance == 'ZUOYESHIJIAN' && dataInstance["${headInstance}"] != null}">
                            <td>${dataInstance["${headInstance}"]}小时</td>
                        </g:if>
                        <g:else>
                            <td>${dataInstance["${headInstance}"]}</td>
                        </g:else>
                    </g:if>
                </g:each>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
<g:render template="../template/pagination"/>
